package cn.aishua.util;

import android.content.SharedPreferences;

public class SharedPrefAccessor
{
    private static SharedPrefAccessor instance;

    public static void initiate( SharedPreferences sharedPref )
    {
        instance = new SharedPrefAccessor( sharedPref );
    }

    public static SharedPrefAccessor getInstance()
    {
        return instance;
    }

    private SharedPreferences sharedPref;

    private SharedPrefAccessor(SharedPreferences sharedPref)
    {
        this.sharedPref = sharedPref;
    }
    
    public SharedPreferences getSharedPref()
    {
        return sharedPref;
    }
}
